﻿@model FruitCake.ContactPage.Models.ContactRequestRecord
@using Orchard.Utility.Extensions;

@{
    Style.Include("admin-contactpage.css");
}

<h1>@Html.TitleForPage(T("Contact Request detail: {0}", @Model.Id))</h1>

@using (Html.BeginFormAntiForgeryPost(Url.Action("Details", "Admin", new { id = Model.Id } )))
{
<fieldset class="bulk-actions">
    <legend></legend>
    @Html.Partial("_RequestActions") | @Html.ActionLink(T("Edit").ToString(), "Edit", new { id = Model.Id }) | @Html.ActionLink(T("Back to list").ToString(), "Index")
</fieldset>        
<fieldset>
    <legend></legend>
    <table class="details">
        <tbody>
            <tr>
                <td>@T("Request Id")</td>
                <td>@Model.Id.ToString("000000")</td>
            </tr>
            <tr>
                <td>@T("Request date")</td>
                <td>@Model.RequestDate</td>
            </tr>
            <tr>
                <td>@T("Contact page")</td>
                <td>@Model.ContactPage</td>
            </tr>
            <tr>
                <td>@T("State")</td>
                <td>@Model.StateValue.ToString() (@Model.StateDate) @Model.StateUser</td>
            </tr>
            <tr>
                <td>@T("Name")</td>
                <td>@Model.Name</td>
            </tr>
            <tr>
                <td>@T("Mail")</td>
                <td>@Model.Mail</td>
            </tr>
            <tr>
                <td>@T("Subject")</td>
                <td>@Model.Subject</td>
            </tr>
            <tr>
                <td>@T("Message text")</td>
                <td>@Html.Raw(Html.Encode(Model.Text).Replace("\n", "<br />"))</td>
            </tr>
        </tbody>
    </table>
</fieldset>
}